var windowName = "feedBack";
var feedBack = {
    cat:0,
    title:"",
    content:""
}


apiready = function(){
    //logOpen()
    // viewData = new MVVM.Model({});
    onWindowShow(function(){
    })
    disablePullDownRefresh();
    // var selectCategory = [
    //     {id:"1",name:"Bug提交"},
    //     {id:"2",name:"投诉建议"},
    //     {id:"0",name:"其他"}
    // ]
    // mkSelect(".selectCategory",selectCategory,function(ele,value){
    //     log(value)
    //     feedBack.cat = value;
    // })
    //补充：手动触发
    //$('.selectPayType select').val('2').trigger('change');

}

function getShop(){
    //showToast("show2")
    feedBack.content = $("#content").val();
    apiGet("/app/FeedBack/add",feedBack, function (res) {
        log(res)
        close();
    })
}

